package com.finance_provider.service.impl;

import com.entity.Receipt;
import com.finance_provider.mapper.ReceiptMapper;
import com.finance_provider.service.ReceiptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/23 9:22
 */
@Service
public class ReceiptServiceImpl implements ReceiptService {

    @Resource
    private ReceiptMapper receiptMapper;

    @Override
    public Boolean addReceipt(Receipt receipt) {
        return receiptMapper.addReceipt(receipt);
    }

    @Override
    public Boolean updateReceipt(Receipt receipt) {
        return receiptMapper.updateReceipt(receipt);
    }

    @Override
    public List<Receipt> queryReceipt(Receipt receipt) {
        return receiptMapper.queryReceipt(receipt);
    }

    @Override
    public Receipt queryReceiptId(Long id) {
        return receiptMapper.queryReceiptId(id);
    }

    @Override
    public Boolean deleteReceiptId(Long id) {
        return receiptMapper.deleteReceiptId(id);
    }
}
